package model

type XyRecord struct {
	Id         int    `json:"id" gorm:"primary_key;autoIncrement:true"`
	ClientIp   string `json:"clientIp" gorm:"column:client_ip;comment:访问IP;type:varchar(128);size:128;""`
	ClickType  string `json:"clickType" gorm:"column:click_type;comment:点击类型;type:varchar(128);size:128;"`
	Username   string `json:"username" gorm:"column:username;comment:用户名;type:varchar(64);size:64;"`
	RecordTime string `json:"recordTime" gorm:"column:record_time;comment:记录时间;type:varchar(20);size:20;"`
}

func (XyRecord) TableName() string {
	return "xy_record"
}

type XyRecordStaResp struct {
	RecordDay string `json:"record_day"`
	LogCount  int    `json:"log_count"`
}
